<extend name="Base/common"/>
<block name="header">
{:hook('mobileTopNav',array('title'=>$meta_title))}
</block>
<block name="body">
	<div class="receiver-add">
	  <form action="{:U()}" method="post">
	    <include file='Public/area' />
	    <div class="control-group">
	      <input type="text" name="address" id="address" <php> if(I('get.addr')){ </php>value="{:I('get.addr')}"<php>}else{</php>value="{$info.address_info}"<php>}</php> placeholder="详细地址" maxlength="100">
	      <i class="icon icon-dizhi" id="mapInput"></i>
	    </div>
	    <div class="control-action">
	      <input type="hidden" name="id" value="{$data.id}">
	      <switch name="status">
	      	 <case value="0"><button type="button" class="btn btn-block btn-positive" style="background-color:#de7a3d;;border:1px solid #de7a3d;">平台审核中</button></case>
	      	 <case value="1"><button type="button" class="btn btn-block btn-positive">审核通过</button></case>
             <case value="-1"><button type="button" class="btn btn-block btn-positive" style="background-color:#de7a3d;;border:1px solid #de7a3d;">审核未通过</button></case>
             <case value="3"><button type="submit" class="btn btn-block btn-positive">申请</button></case>
	      </switch>
	    </div>
	  </form>
	</div>
	<style type="text/css">
.control-group{ position: relative; }
.control-group i{ position: absolute; right: 10px; top: 11px; font-size: 22px; }
	</style>
</block>
<block name="script">
  <script>
    seajs.use('', function(){
    	$('#mapInput').on('click',function(){
    	var key = "{:C('TX_MAP_KEY')}";
    	var app = "{:C('TX_MAP_APPNAME')}";
      	//var backurl = "{:SITE_URL}";
      	var backurl = window.location.href;
      	var latlng = "{$lnglat}";
      	var _url = "http://apis.map.qq.com/tools/locpicker?search=1&coord="+latlng+"&mapdraggable=1&type=0&backurl="+backurl+"&key="+key+"&referer="+app;
      	window.location.href = _url;
      });
    });

  </script>
</block>